package rank;

import data.RankPlayer;

public class TrainRankNode extends RankNode {

	public RankPlayer player;
	
	public TrainRankNode(RankPlayer player) {
		this.player = player;
//		player.trainRankNode = this;
	}
	
	@Override
	public int compareTo(RankNode o) {
		RankPlayer op = ((TrainRankNode)o).player;
//		if (player.trainLevel != op.trainLevel)
//			return player.trainLevel>op.trainLevel?1:-1;
		if (player.level != op.level)
			return player.level>op.level?1:-1;
		return 0;
	}

	@Override
	public void setRanking(int ranking) {
//		player.trainRank = ranking;
	}

	@Override
	public int getRanking() {
		return 0;
//		return player.trainRank; 
	}

}
